package com.qf.service.impl;

import com.qf.service.UploadService;
import com.qf.utils.ResultMsg;
import com.qf.utils.UploadUtils;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

@Service
public class UploadServiceImpl implements UploadService {
    @Override
    public ResultMsg pictureUpload(MultipartFile file) {
        String picture = UploadUtils.uploadPicture(file, "picture");
        return ResultMsg.SUCCESS(picture);
    }
}
